package com.jhy.ws.controller;

import com.baomidou.lock.annotation.Lock4j;
import com.jhy.core.domain.R;

import com.jhy.ws.domain.vo.WsMsgRecordVo;
import com.jhy.ws.service.IWsMsgRecordService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.concurrent.TimeoutException;

@RequiredArgsConstructor
@RequestMapping("/msgRecord")
@RestController()
public class WsMsgRecordController {


    private final IWsMsgRecordService recordService;

    /**
     * 查询消息记录
     * **/
    @GetMapping("/findByFriendUserId")
    public R<List<WsMsgRecordVo>> findByFriendUserId(Long friendUserId) {
        return R.ok("ok",recordService.findByFriendUserId(friendUserId));
    }





}
